world.gravity = 2000
world.mapmusic = 7
world.mapambient = 4
world.maptitle = "Sunny Hill - Act 1"
world.nextmap = "1_act2.lua"
world.deadzone = 2000
world:settheme("sunny")
local entity_manager = global.entity_manager
local decals = entity_manager:getEntity("Decals")
local platforms = entity_manager:getEntity("Platforms")
local materials = entity_manager:getEntity("Materials")
local props = entity_manager:getEntity("Props")
local springs = entity_manager:getEntity("Springs")
local portals = entity_manager:getEntity("Portals")
local bumpers = entity_manager:getEntity("Bumpers")
local coins = entity_manager:getEntity("Coins")
local crates = entity_manager:getEntity("Crates")
local pickups = entity_manager:getEntity("Pickups")
local checkpoints = entity_manager:getEntity("Checkpoints")
local traps = entity_manager:getEntity("Traps")
local tips = entity_manager:getEntity("Tips")
local enemies = entity_manager:getEntity("Enemies")


platforms:add(5740,-3200,710,900,false,false,false,0,0,false,0,20)
platforms:add(5920,-2520,100,30,false,true,false,100,100,false,0,1)
platforms:add(50,-3080,560,20,true,false,false,0,0,false,0,1)

platforms:add(850,-3080,0,20,false,false,false,1.5,0,true,0,1)

platforms:add(-450,-3150,510,350,false,false,false,0,0,false,0,20)
platforms:add(-450,-3690,520,630,true,false,false,0,0,false,0,1)
platforms:add(4890,-1990,70,80,true,false,false,0,0,false,0,5)
platforms:add(6750,-3260,460,350,false,false,false,0,0,false,0,20)
platforms:add(5920,-2770,100,30,false,true,false,100,100,false,0,1)
platforms:add(5690,-2650,100,30,false,true,false,100,100,false,0,1)
platforms:add(6010,-2920,500,640,true,false,false,0,0,false,0,18)
platforms:add(4880,-1930,2080,430,true,false,false,0,0,false,0,3)
platforms:add(6470,-2920,1650,1420,true,false,false,0,0,false,0,1)
platforms:add(5210,-2680,140,30,true,false,false,0,0,false,0,1)
platforms:add(1560,-3860,400,760,false,false,false,0,0,false,0,2)
platforms:add(1350,-3110,600,90,true,false,false,0,0,false,0,1)
platforms:add(1620,-3260,100,20,false,false,false,0,0,false,0,5)
platforms:add(1620,-3550,100,20,false,false,false,0,0,false,0,5)
platforms:add(1620,-3410,100,20,false,false,false,0,0,false,0,5)
platforms:add(60,-4200,1520,810,true,false,false,0,0,false,0,1)
platforms:add(5390,-3460,60,290,true,false,false,0,0,false,0,1)
platforms:add(4940,-3840,560,520,true,false,false,0,0,false,0,1)
platforms:add(-1560,-3720,1130,1470,true,false,false,0,0,false,0,1)
platforms:add(810,-3100,100,20,false,true,false,-100,382,false,0,5)
platforms:add(1950,-3380,460,290,false,false,false,0,0,false,0,20)
platforms:add(1930,-3110,500,860,true,false,false,0,0,false,0,1)
platforms:add(1930,-3580,500,260,true,false,false,0,0,false,0,1)
platforms:add(2610,-3010,390,760,true,false,false,0,0,false,0,1)
platforms:add(3160,-2820,400,570,true,false,false,0,0,false,0,1)
platforms:add(1330,-2810,240,80,true,false,false,0,0,false,0,1)
platforms:add(1690,-2810,110,80,true,false,false,0,0,false,0,1)
platforms:add(3130,-3580,100,60,true,false,false,0,0,false,0,7)
platforms:add(3490,-3500,100,60,true,false,false,0,0,false,0,7)
platforms:add(4250,-3380,100,60,true,false,false,0,0,false,0,7)
platforms:add(3860,-3430,100,60,true,false,false,0,0,false,0,7)
platforms:add(4610,-4100,350,880,true,false,false,0,0,false,0,1)
platforms:add(4520,-3040,100,20,false,true,false,100,484,false,0,8)
platforms:add(-440,-2810,650,580,true,false,false,0,0,false,0,18)
platforms:add(450,-2810,580,580,true,false,false,0,0,false,0,18)
platforms:add(7940,-3650,190,1370,true,false,false,0,0,false,0,1)
platforms:add(5440,-3670,1790,500,true,false,false,0,0,false,0,1)
platforms:add(1570,-4200,860,360,true,false,false,0,0,false,0,1)
platforms:add(4930,-2680,140,30,true,false,false,0,0,false,0,1)
platforms:add(5090,-2680,100,20,false,false,true,-100,552,false,0,1)
platforms:add(4100,-2680,800,1180,true,false,false,0,0,false,0,1)
platforms:add(5330,-2920,470,640,true,false,false,0,0,false,0,18)
platforms:add(3690,-2680,1260,430,true,false,false,0,0,false,0,18)
platforms:add(630,-3100,100,20,false,false,true,100,200,false,0,5)
platforms:add(4080,-3040,360,110,true,false,false,0,0,false,0,1)
platforms:add(2780,-3580,0,20,false,false,false,1.5,0,true,0,1)
pickups:add(4280,-2720,"magnet")
pickups:add(3890,-2710,"gem")
pickups:add(1720,-2850,"shield")
pickups:add(3330,-2895,"star")
pickups:add(7880,-2960,"life")
pickups:add(5360,-2950,"gem")
pickups:add(5460,-2950,"gem")
pickups:add(5550,-2950,"gem")
pickups:add(5630,-2950,"gem")
pickups:add(5160,-1960,"gem")
pickups:add(5380,-1960,"gem")
pickups:add(5580,-1960,"gem")
pickups:add(5720,-1960,"gem")
coins:add(3210,-2850)
coins:add(3460,-2850)
coins:add(4150,-3070)
coins:add(4270,-3070)
coins:add(4410,-3070)
coins:add(2010,-3140)
coins:add(2130,-3140)
coins:add(2240,-3140)
coins:add(2350,-3140)
coins:add(110,-3110)
coins:add(250,-3110)
coins:add(360,-3110)
coins:add(500,-3110)
crates:add(2900,-3060,"gem")
crates:add(2850,-3060,"gem")
crates:add(2880,-3110,"gem")
crates:add(150,-3280,"gem")
crates:add(290,-3280,"gem")
crates:add(430,-3280,"gem")

checkpoints:add(2730,-3110)
enemies:add(1410,-3020,0,0,2,"spike")
enemies:add(1390,-3020,0,0,0,"icicle")
enemies:add(1370,-3020,0,0,0,"icicle")
enemies:add(1490,-3020,0,0,0,"icicle")
enemies:add(1510,-3020,0,0,0,"icicle")
enemies:add(1530,-3020,0,0,0,"icicle")
enemies:add(2090,-3320,0,0,2,"spike_large")
enemies:add(3110,-3100,100,400,1,"floater")
enemies:add(650,-3300,-100,418,0,"floater")
enemies:add(5350,-3030,-100,142,0,"walker")
enemies:add(5530,-3020,-100,142,0,"walker")
enemies:add(6020,-3170,0,0,2,"spike_large")
enemies:add(6180,-3170,0,0,0,"icicle")
enemies:add(6200,-3170,0,0,0,"icicle")
enemies:add(6220,-3170,0,0,2,"spike")
enemies:add(6320,-3170,0,0,2,"spike")
enemies:add(6300,-3170,0,0,0,"icicle")
enemies:add(1590,-3610,-100,278,0,"floater")
enemies:add(3720,-2850,100,100,1,"walker")
enemies:add(3870,-2830,100,146,1,"walker")
enemies:add(4060,-2780,100,186,1,"walker")
enemies:add(4290,-2770,-100,206,0,"walker")
enemies:add(4540,-2750,-100,100,0,"walker")
enemies:add(4690,-2750,-100,152,0,"walker")
enemies:add(5340,-2120,100,400,1,"floater")
enemies:add(4950,-2450,0,0,1,"spike_large")
enemies:add(4950,-2610,0,0,1,"spike_large")
enemies:add(6420,-2260,0,0,3,"spike_large")
enemies:add(6420,-2100,0,0,3,"spike_large")
enemies:add(2000,-3260,-100,298,0,"walker")
enemies:add(-50,-2910,100,546,1,"hopper")
enemies:add(1420,-3160,0,0,0,"spike_timer")
enemies:add(5450,-1980,0,0,0,"spike_timer")
enemies:add(5600,-1980,0,0,0,"spike_timer")
props:add(420,-3060,0,false,"arch")
props:add(5980,-2130,0,false,"tree2")
props:add(5240,-3130,0,false,"tree2")
props:add(4210,-3140,0,false,"tree2")
props:add(3090,-3320,0,false,"tree2")
props:add(3400,-2970,0,false,"flower2")
props:add(850,-2880,0,false,"flower")
props:add(3420,-2870,0,false,"rock")
props:add(3840,-2730,0,false,"rock")
props:add(4170,-2930,0,false,"arch")
props:add(4260,-2930,0,true,"arch")
props:add(4350,-2930,0,false,"arch")
props:add(5440,-3170,0,false,"arch3")
props:add(5390,-3170,0,false,"arch3_end")
props:add(5640,-2950,0,false,"flower")
props:add(5610,-2960,0,false,"flower")
props:add(6450,-3170,0,false,"porthole")
props:add(1020,-2870,0,false,"post")
props:add(1330,-2870,0,false,"post")
props:add(450,-2870,0,false,"post")
props:add(200,-2870,0,false,"post")
props:add(3470,-2890,0,false,"flower")
props:add(4550,-2740,0,false,"flower")
props:add(4510,-2750,0,false,"flower")
props:add(4670,-2800,0,false,"flower2")
props:add(6060,-2280,0,false,"arch3")
props:add(6010,-2280,0,false,"arch3_end")
props:add(6030,-2030,0,false,"arch3_pillar")
props:add(6330,-2030,0,false,"arch3_pillar")
props:add(6360,-2280,0,false,"arch3")
props:add(5240,-2650,0,false,"arch")
props:add(510,-3060,0,true,"arch")
props:add(4080,-2930,0,true,"arch")
props:add(2180,-3710,0,false,"wood1")
springs:add(4960,-1990,1,"spring_m")
springs:add(5870,-1960,0,"spring_l")
portals:add(6580,-2980,"goal")
portals:add(-250,-2890,"spawn")
decals:add(5370,-2280,390,350,100,1)
decals:add(1610,-3010,270,250,100,1)
decals:add(4640,-3220,300,550,100,1)
decals:add(2430,-2960,180,710,100,1)
decals:add(3000,-2790,160,540,100,1)
decals:add(3560,-2640,130,390,100,1)
decals:add(1030,-2750,900,520,100,1)
decals:add(210,-3050,240,520,100,1)
materials:add(3560,-2440,130,190,"death")
materials:add(3000,-2550,160,300,"death")
materials:add(2430,-2720,180,470,"death")
materials:add(1030,-2610,900,380,"death")
materials:add(210,-2610,240,380,"death")
traps:add(1030,-2810,"log")
traps:add(1060,-2810,"log")
traps:add(1090,-2810,"log")
traps:add(1120,-2810,"log")
traps:add(1150,-2810,"log")
traps:add(1180,-2810,"log")
traps:add(1210,-2810,"log")
traps:add(1240,-2810,"log")
traps:add(1270,-2810,"log")
traps:add(1300,-2810,"log")
traps:add(210,-2810,"log")
traps:add(240,-2810,"log")
traps:add(270,-2810,"log")
traps:add(300,-2810,"log")
traps:add(330,-2810,"log")
traps:add(360,-2810,"log")
traps:add(390,-2810,"log")
traps:add(420,-2810,"log")
